package com.github.leecho.ssc.captcha;

/**
 * @author LIQIU
 * created on 2020/11/13
 **/
public class FixedCaptcha implements Captcha {

    private final String value;

    public FixedCaptcha(String value) {
        this.value = value;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public boolean equals(Object obj) {
        if (!obj.getClass().isAssignableFrom(this.getClass())) {
            return false;
        }
        FixedCaptcha other = (FixedCaptcha) obj;
        return this.value.equals(other.getValue());
    }
}
